package com.zhs.demoutil.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhs.demoutil.entity.Admin;

import java.util.List;

public interface AdminService extends IService<Admin> {

    Admin login(String username, String password);

    Admin queryByUserName(String username);

    Admin queryByMobile(String mobile);

    void register(String username, String password, String realName, String mobile, String street, Integer userManager, Integer compare, Integer query);

    void updateUserAndRole(Long adminId, String username, String realName, String mobile, Integer userManager, Integer compare, Integer query);

    void updatePassword(Long adminId, String oldPassword, String password);

    void resetPassword(Long adminId);

    List<Long> listByStreet(String street);
}
